When the crate to install is unspecified, we should really inform users about
where they can install from (other than crates.io). This makes the message mention --path
and --git so that people know they exist.
try!(select_pkg(RegistrySource::new(source_id, config),
source_id, krate, vers,
&mut |_| Err(human("must specify a crate to install from \
- crates.io"))))
+ crates.io, or use --path or --git to \
+ specify alternate source"))))
};
let mut list = try!(read_crate_list(&root));
test!(no_crate {
assert_that(cargo_process("install"),
execs().with_status(101).with_stderr("\
-must specify a crate to install from crates.io
+must specify a crate to install from crates.io, or use --path or --git \
+to specify alternate source
"));
});